const user = (state = {
    isLogin:false
}, action) => {
    switch (action.type) {
        case 'USER_LOGIN':
            return {
                ...state,
                username:action.username,
                password:action.password,
                isLogin:true
            }

        default:
            return state
    }
}
export default user